#include "cppjieba/Jieba.hpp"
#include <string>
#include <iostream>
#include <vector>
using namespace std;
int main(){
    const char * dict_path = "dict/jieba.dict.utf8";
    const char * model_path = "dict/hmm_model.utf8";
    const char * user_dict_path = "dict/user.dict.utf8";
    const char * idf_path = "dict/idf.utf8";
    const char * stop_word_path = "dict/stop_words.utf8";
    cppjieba::Jieba jieba(dict_path,model_path,user_dict_path,idf_path,stop_word_path);
    
    //string sentence = "我从北京清华大学，去北京航空航天大学，去看女朋友";
    string sentence = "但随着最近十几年我国电视的高速普\n及";
    vector<string> words;
    jieba.Cut(sentence,words,true);

    for(auto word:words){
        cout << "word = " << word << "\n";
    }
}
